home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
- Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
- Date: Thu, 04 Apr 96 15:37:57 GMT
- Organization: none
- Message-ID: <828632277snz@genesis.demon.co.uk>
- References: <JSA.96Feb16135027@organon.com> <31582A63.4BE9@east.thomsoft.com> <4jeel1$erh@tpd.dsccc.com> <JSA.96Mar29195546@organon.com> <4jp388$d56@tpd.dsccc.com> <828445854snz@genesis.demon.co.uk> <emery-0204960656230001@line030.nwm.mindlink.net>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <emery-0204960656230001@line030.nwm.mindlink.net>
- emery@grebyn.com "David Emery" writes:
-
- >In article <828445854snz@genesis.demon.co.uk>, fred@genesis.demon.co.uk wrote:
- >
- >> ANSI C doesn't define UNIX OS calls so isn't really relevant to your point.
- >> Unix calls are reasonably standardised for C through the likes of POSIX and
- >> X/Open which is natural because C is the core development language for
- >> the platform.
- >
- >This is not exactly true. The POSIX.1 standard make extensive use of
- >facilities in the ANSI C standard. Chapter 2 contains a list of library
- >calls of ANSI C "included" in POSIX (e.g. malloc(), while Chapter 8
- >contains C-specific facilities, that refine the behavior of some ANSI
- >C library routines such as file stream IO.
-
- ANSI C defines the ANSI standard library calls. While UNIX(tm) validation
- may require these that is down to the UNIX and from that the POSIX
- specification, not the ANSI standard: there is nothing in the ANSI standard
- that states the UNIX system interface must be one thing or another, rather
- it is the UNIX standards that define the UNIX system interface with
- reference to the ANSI C standard.
-
- It may be a fine point but it is important. UNIX existed before ANSI C.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-